package com.ids.actions;

import com.ids.service.LoginService;
import com.opensymphony.xwork2.ActionSupport;

public class RecoverPassword extends ActionSupport {

	private static final long serialVersionUID = 1L;
	private String newPassword;
	private String confirmPassword;
	private String empCode;
	private String key;

	public String execute() throws Exception {
		return SUCCESS;
	}

	public String recoverPassword() throws Exception {
		LoginService loginService = new LoginService();
		String abc = loginService.recoverPassword(newPassword, confirmPassword,empCode, key);
		return abc;
	}
	
	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public String getEmpCode() {
		return empCode;
	}

	public void setEmpCode(String empCode) {
		this.empCode = empCode;
	}

	public String getNewPassword() {
		return newPassword;
	}

	public void setNewPassword(String newPassword) {
		this.newPassword = newPassword;
	}

	public String getConfirmPassword() {
		return confirmPassword;
	}

	public void setConfirmPassword(String confirmPassword) {
		this.confirmPassword = confirmPassword;
	}

}
